home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12273 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  47 lines

  1. Newsgroups: comp.lang.c++
  2. Path: netcom.com!mikenann
  3. From: Michael Glassman and Ann Ross <mikenann@netcom.com>
  4. Subject: Re: Overload
  5. Content-Type: text/plain; charset=us-ascii
  6. Message-ID: <314E323F.20A6@netcom.com>
  7. Sender: mikenann@netcom10.netcom.com
  8. Content-Transfer-Encoding: 7bit
  9. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  10. References: <4iju56$m68@tic.sm.dsi.unimi.it>
  11. Mime-Version: 1.0
  12. Date: Tue, 19 Mar 1996 04:04:15 GMT
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. ~ZIO BUDDA~ wrote:
  16. > Hi, this is my question :
  17. > i have thi class :
  18. > class Foo {
  19. >         char *a;
  20. >         String b;
  21. >    public:
  22. >         char *GET();
  23. >         String GET();
  24. > };
  25. > why this overload is not poxible????
  26. > I don't want two function with 2 name, i want 2 function with the same name.
  27. > tnx in advence.
  28. > --
  29. > Zio Budda "sempre alla ricerca di un account..." moreld@ghost.dsi.unimi.it
  30. > http://www.dsi.unimi.it/Users/Students/moreld/home.html
  31. > Ask me for questions about LINUX and Games for PC, and see my home page
  32. > I'm a programmer and a consultant...
  33. > Tel. 02/2139959 ... Chiedere di Davide Michel
  34.  
  35. It is illegal.
  36. Overloaded functions must differ by more than the return type.
  37.  
  38. Michael Glassman
  39.